<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <link th:href="@{/css/admin/base/table.css}" rel="stylesheet"  type="text/css"/>
    <link th:href="@{/css/admin/base/busmanagement/option.css}" rel="stylesheet"  type="text/css"/>
</head>
<body>


<div class="row">
    <div class="col-md-12">
        <div class="portlet box">
            <div class="portlet-body">
                <div id="tab" class="table-tab">
                    <button id="dsp" class="button">待审批</button>
                    <button id="ysp" class="button-active">已审批</button>
                    <button id="yth" class="button-active">已退回</button>
                </div>
                <table id="b-approve-table" class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr class="table-title">
                        <th>车牌号</th>
                        <th>驾驶员</th>
                        <th>申请项目</th>
                        <th>申请时间</th>
                        <th>审批意见</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody id="b-approve-tbody" class="mt-td-checkbox">
                        <input type="hidden" id="roleName" th:value="${roleName}" />
                        <th:block th:if='${not #lists.isEmpty(busVoList)}'>
                            <tr th:each='con : ${busVoList}' th:id="${con.id}">
                                <th:block >
                                <td th:text='${con.busNo}'></td>
                                <td th:text='${con.userName}'></td>
                                <td th:text='${con.applicationOption}'></td>
                                <td><div th:text='${con.date}'></div><div th:text='${con.time}'></div></td>
                                <td>-</td>
                                <td>待审批</td>
                                <td><div onclick="seeApprove($(this.parentNode.parentNode).attr('id'),'dsp')">查看</div>
                                    <div onclick="pass($(this.parentNode.parentNode).attr('id'))">通过</div></td>
                            </th:block>
                            </tr>
                        </th:block>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script th:src="@{/js/admin/busmanagement/b_approve.js}" type="text/javascript"></script>
</body>
</html>